package com.lxmes.business.service;

import java.util.List;
import com.lxmes.business.domain.CcCaigouDetail;
import com.lxmes.business.domain.CcChukuDetail;

/**
 * 采购详情Service接口
 * 
 * @author 张志煜
 * @date 2022-06-11
 */
public interface ICcCaigouDetailService 
{
    /**
     * 查询采购详情
     * 
     * @param id 采购详情主键
     * @return 采购详情
     */
    public CcCaigouDetail selectCcCaigouDetailById(Long id);
    /**
     * 查询采购详情
     *
     * @param danhao 采购详情主键
     * @return 采购详情
     */
    public List<CcCaigouDetail> selectCcCaigouDetailByDanHao(String danhao);


    /**
     * 查询采购详情列表
     * 
     * @param ccCaigouDetail 采购详情
     * @return 采购详情集合
     */
    public List<CcCaigouDetail> selectCcCaigouDetailList(CcCaigouDetail ccCaigouDetail);
    /**
     * 去添加采购的物料
     * @param ids 物料IDS
     * @return 采购物料
     */
    public List<CcCaigouDetail> addCaigoItemInfo(Long[] ids);

    /**
     * 新增采购详情
     * 
     * @param ccCaigouDetail 采购详情
     * @return 结果
     */
    public int insertCcCaigouDetail(CcCaigouDetail ccCaigouDetail);

    /**
     * 修改采购详情
     * 
     * @param ccCaigouDetail 采购详情
     * @return 结果
     */
    public int updateCcCaigouDetail(CcCaigouDetail ccCaigouDetail);

    /**
     * 批量删除采购详情
     * 
     * @param ids 需要删除的采购详情主键集合
     * @return 结果
     */
    public int deleteCcCaigouDetailByIds(Long[] ids);

    /**
     * 删除采购详情信息
     * 
     * @param id 采购详情主键
     * @return 结果
     */
    public int deleteCcCaigouDetailById(Long id);
}
